#!/bin/bash

# 创建并激活虚拟环境
python -m venv venv
source venv/bin/activate  # Linux/Mac
# 或 .\venv\Scripts\activate  # Windows

# 升级 pip
python -m pip install --upgrade pip

# 安装依赖
pip install -r requirements.txt

# 创建必要的目录
mkdir -p data/logs
mkdir -p .streamlit

# 设置 Torch 缓存目录
mkdir -p ~/.cache/torch/hub 